<?

$fs_ass_tra_depreciation_entry = new Fieldset (array (
	db_conn=>$_GLOBAL_DBH,
	relation=>"ass_tra_depreciation_entry",
	title=>"Asset Depreciation Entry",
	fieldset=>array (
		array (name=>"id",label=>"ID",type=>"numeric",
				value=>$_REQUEST["depreciation_entry_id"],
				input=>"hidden",primary_key=>true),
		array (name=>"asset_id",label=>"Asset ID",type=>"numeric",
				relation=>array(foreign=>"ass_tra_assets",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM ass_tra_assets",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"depreciation_date",label=>"Depreciation Date",type=>"any",
				input=>"date",value=>_app_date("depreciation_date")),
		array (name=>"amount",label=>"Ammount",type=>"decimal",
				input=>"field"),
	),
));

$fs_ass_tra_depreciation_entry->parse ();

?>
